﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Webchatting.Dal;
using Webchatting.Common;

public partial class BUAddNickName : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnSummit_Click(object sender, EventArgs e)
    {
        Random rd = new Random();
        string BUId = rd.Next(1000000).ToString();
       
        OperationBU BUser = new OperationBU();
        BUser.AddBUser(BUId, txtBUNickName.Text);
        Session["BUId"] = BUId;
        Session["BUNickName"] = txtBUNickName.Text.Trim();

        //Response.Redirect("BaseChatting.aspx");
        Server.Transfer("BaseChatting.aspx");
    }
   
    protected void BtnCancel_Click(object sender, EventArgs e)
    {
        Response.Redirect("Index.aspx");
        //Server.Transfer("Index.aspx");
    }


    
}
